/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.Demo03;

import java.util.List;
import java.util.ArrayList;
        
/**
 *
 * @author Administrator
 */
public class NewClassTest {
    public static void main(String[] args) {
        NewClass p1 = new NewClass("张三","110","民族大道110号");
        NewClass p2 = new NewClass("李四","111","民族大道111号");
        NewClass p3 = new NewClass("王五","112","民族大道112号");
        
        List l = new ArrayList();
        l.add(p1);
        l.add(p2);
        l.add(p3);
        
        System.out.println("ArrayList 的元素是:");
        System.out.println(l);
    }

}
